home *** CD-ROM | disk | FTP | other *** search
/ PC Open 96 / PC Open 96 CD3.bin / fscommand / index.swf / scripts / DefineSprite_66 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2004-01-08  |  610 b   |  23 lines

  1. this.xTab = new XML();
  2. this.xTab.ignoreWhite = true;
  3. this.xTab.controller = this;
  4. this.xTab.onLoad = function()
  5. {
  6.    var root = this.firstChild;
  7.    var i = 0;
  8.    while(i < 4)
  9.    {
  10.       if(root.childNodes[i] != null)
  11.       {
  12.          if(root.childNodes[i].attributes.label != "")
  13.          {
  14.             _root[i + "_TAB"].tfLabel.text = root.childNodes[i].attributes.label;
  15.          }
  16.          trace(_root[i + "_TAB"].tfLabel.text);
  17.          _root[i + "_TAB"]._visible = root.childNodes[i].attributes.visible != "true" ? false : true;
  18.       }
  19.       i++;
  20.    }
  21. };
  22. this.xTab.load("tab.xml");
  23.